using System;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;

namespace Buddy.Auth.Objects
{
	[KnownType(typeof(TimeSpan))]
	[DataContract(Name = "UsageInfo", Namespace = "Buddy.Auth.Objects")]
	public class UsageInfo
	{
		[CompilerGenerated]
		private string string_0;

		[CompilerGenerated]
		private string string_1;

		[CompilerGenerated]
		private string string_2;

		[CompilerGenerated]
		private string string_3;

		[CompilerGenerated]
		private TimeSpan timeSpan_0;

		[DataMember]
		public string OsVersion
		{
			[CompilerGenerated]
			get
			{
				return string_0;
			}
			[CompilerGenerated]
			private set
			{
				string_0 = value;
			}
		}

		[DataMember]
		public string BotBase
		{
			[CompilerGenerated]
			get
			{
				return string_1;
			}
			[CompilerGenerated]
			set
			{
				string_1 = value;
			}
		}

		[DataMember]
		public string Routine
		{
			[CompilerGenerated]
			get
			{
				return string_2;
			}
			[CompilerGenerated]
			set
			{
				string_2 = value;
			}
		}

		[DataMember]
		public string Profile
		{
			[CompilerGenerated]
			get
			{
				return string_3;
			}
			[CompilerGenerated]
			set
			{
				string_3 = value;
			}
		}

		[DataMember]
		public TimeSpan RunTime
		{
			[CompilerGenerated]
			get
			{
				return timeSpan_0;
			}
			[CompilerGenerated]
			set
			{
				timeSpan_0 = value;
			}
		}

		public UsageInfo(TimeSpan runTime, string botBase = "", string routine = "", string profile = "")
		{
			RunTime = runTime;
			BotBase = botBase;
			Routine = routine;
			Profile = profile;
			OsVersion = Environment.OSVersion.VersionString;
		}
	}
}
